<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="/WEB-TAG/platForm.tld" prefix="PF"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<PF:basePath/>">
		<title>实体管理</title>
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">
		<jsp:include page="/WEB-FACE/conf/includeH.jsp"></jsp:include>
	</head>
	<body class="easyui-layout">
		<div data-options="region:'north',border:false">
			<form id="dom_search">
				<table class="editTable">
					<tr>
						<td class="title">
							任务名称:
						</td>
						<td>
							<input name="A.NAME_:like" type="text">
						</td>
						<td class="title">
							任务执行者:
						</td>
						<td>
							<input name="C.NAME:like" type="text">
						</td>
						<td class="title">
							流程实例ID:
						</td>
						<td>
							<input name="B.ID_ :like" type="text">
						</td>
						<td class="title">
							流程参数中检索:
						</td>
						<td>
							<input name="e.TEXT_:like" type="text">
						</td>
					</tr>
					<tr style="text-align: center;">
						<td colspan="8">
							<a id="a_search" href="javascript:void(0)"
								class="easyui-linkbutton" iconCls="icon-search">查询</a>
							<a id="a_reset" href="javascript:void(0)"
								class="easyui-linkbutton" iconCls="icon-reload">清除条件</a>
						</td>
					</tr>
				</table>
			</form>
		</div>
		<div data-options="region:'center',border:false">
			<table id="dom_datagrid">
				<thead>
					<tr>
						<th data-options="field:'ck',checkbox:true"></th>
						<th field="TASKNAME" data-options="sortable:true" width="80">
							任务名称
						</th>
						<th field="TASKUSER" data-options="sortable:true" width="80">
							任务执行者
						</th>
						<th field="TASKSTARTTIME" data-options="sortable:true" width="80">
							任务开始时间
						</th>
						<th field="TASKENDTIME" data-options="sortable:true" width="80">
							任务完成时间
						</th>
						<th field="DELETEREASON" data-options="sortable:true" width="80">
							任务清除原因
						</th>
						<th field="PROSTARTTIME" data-options="sortable:true" width="80">
							流程启动时间
						</th>
						<th field="PROENDTIME" data-options="sortable:true" width="80">
							流程结束时间
						</th>
						<th field="PROCESSSTARTUSER" data-options="sortable:true"
							width="80">
							流程启动人
						</th>
						<th field="PROCESSDELETEREASON" data-options="sortable:true"
							width="80">
							流程清除原因
						</th>
						<th field="TASKID" data-options="sortable:true" width="80">
							任务ID
						</th>
						<th field="INSTANCEID" data-options="sortable:true" width="80">
							流程实例ID
						</th>
						<th field="PROCESSDEFID" data-options="sortable:true" width="80">
							流程定义ID
						</th>
					</tr>
				</thead>
			</table>
		</div>
	</body>
	<script type="text/javascript">
	var url_delAction = "admin/taskhistorydeleteCommit.do";//删除URL
	var url_formAction = "admin/taskhistoryshow.do";//增加、修改、查看URL
	var url_searchAction = "admin/taskhistoryqueryAll.do";//查询URL
	var title_window = "实体管理";//功能名称
	var grid;//数据表格对象
	var search;//条件查询组件对象
	var TOOL_BAR = [ {
		id : 'view',
		text : '查看流程参数信息',
		iconCls : 'icon-tip',
		handler : viewData
	} ];
	$(function() {
		//初始化数据表格
		grid = $('#dom_datagrid').datagrid( {
			url : url_searchAction,
			fit : true,
			fitColumns : true,
			'toolbar' : TOOL_BAR,
			pagination : true,
			closable : true,
			checkOnSelect : true,
			striped : true,
			rownumbers : true,
			ctrlSelect : true
		});
		//初始化条件查询
		search = $('#dom_search').searchForm( {
			gridObj : grid
		});
	});
	//查看
	function viewData() {
		var selectedArray = $(grid).datagrid('getSelections');
		if (selectedArray.length == 1) {
			var url = url_formAction + '?pageset.pageType=' + PAGETYPE.VIEW
					+ '&ids=' + selectedArray[0].INSTANCEID;
			$.farm.openWindow( {
				id : 'win',
				width : 600,
				height : 300,
				modal : true,
				url : url,
				title : '浏览'
			});
		} else {
			$.messager.alert(MESSAGE_PLAT.PROMPT, MESSAGE_PLAT.CHOOSE_ONE_ONLY,
					'info');
		}
	}
	
</script>
</html>




